home *** CD-ROM | disk | FTP | other *** search
/ Animation How-To / Animation How-to CD.iso / PLY / CHAPTER3 / ROCKY / COLORBIT.INC next >
Text File  |  1994-01-01  |  3KB  |  68 lines

  1. include "colormap.inc"
  2.  
  3. define position_plain       0
  4. define position_objectx     1
  5. define position_worldx      2
  6. define position_cylindrical 3
  7. define position_spherical   4
  8. define position_radial      5
  9.  
  10. define lookup_plain    0
  11. define lookup_sawtooth 1
  12. define lookup_sin      2
  13. define lookup_ramp     3
  14.  
  15. define a 4  // position function
  16. define b 1  // lookup funciton
  17. define c 2  // octaves
  18. define d sin(phz*rad)  // turbulance
  19.  
  20. define color_phase
  21. texture {
  22.    noise surface {
  23.       color white
  24.       position_fn a
  25.       lookup_fn b
  26.       octaves c
  27.       turbulence d
  28.       ambient 0.2
  29.       diffuse 0.8
  30.       specular 0.3
  31.       microfacet Reitz 5
  32.       color_map(
  33.       [0.000, 0.033, <a00, b00, c00>, <a01, b01, c01> ]
  34.       [0.033, 0.067, <a01, b01, c01>, <a02, b02, c02> ]
  35.       [0.067, 0.100, <a02, b02, c02>, <a03, b03, c03> ]
  36.       [0.100, 0.133, <a03, b03, c03>, <a04, b04, c04> ]
  37.       [0.133, 0.167, <a04, b04, c04>, <a05, b05, c05> ]
  38.       [0.167, 0.200, <a05, b05, c05>, <a06, b06, c06> ]
  39.       [0.200, 0.233, <a06, b06, c06>, <a07, b07, c07> ]
  40.       [0.233, 0.267, <a07, b07, c07>, <a08, b08, c08> ]
  41.       [0.267, 0.300, <a08, b08, c08>, <a09, b09, c09> ]
  42.       [0.300, 0.333, <a09, b09, c09>, <a10, b10, c10> ]
  43.       [0.333, 0.367, <a10, b10, c10>, <a11, b11, c11> ]
  44.       [0.367, 0.400, <a11, b11, c11>, <a12, b12, c12> ]
  45.       [0.400, 0.433, <a12, b12, c12>, <a13, b13, c13> ]
  46.       [0.433, 0.467, <a13, b13, c13>, <a14, b14, c14> ]
  47.       [0.467, 0.500, <a14, b14, c14>, <a15, b15, c15> ]
  48.       [0.500, 0.533, <a15, b15, c15>, <a16, b16, c16> ]
  49.       [0.533, 0.567, <a16, b16, c16>, <a17, b17, c17> ]
  50.       [0.567, 0.600, <a17, b17, c17>, <a18, b18, c18> ]
  51.       [0.600, 0.633, <a18, b18, c18>, <a19, b19, c19> ]
  52.       [0.633, 0.667, <a19, b19, c19>, <a20, b20, c20> ]
  53.       [0.667, 0.700, <a20, b20, c20>, <a21, b21, c21> ]
  54.       [0.700, 0.733, <a21, b21, c21>, <a22, b22, c22> ]
  55.       [0.733, 0.767, <a22, b22, c22>, <a23, b23, c23> ]
  56.       [0.767, 0.800, <a23, b23, c23>, <a24, b24, c24> ]
  57.       [0.800, 0.833, <a24, b24, c24>, <a25, b25, c25> ]
  58.       [0.833, 0.867, <a25, b25, c25>, <a26, b26, c26> ]
  59.       [0.867, 0.900, <a26, b26, c26>, <a27, b27, c27> ]
  60.       [0.900, 0.933, <a27, b27, c27>, <a28, b28, c28> ]
  61.       [0.933, 0.967, <a28, b28, c28>, <a29, b29, c29> ]
  62.       [0.967, 1.000, <a29, b29, c29>, <a30, b30, c30> ]
  63.       [1.000, 1.033, <a30, b30, c30>, <a00, b00, c00> ])
  64.    }
  65.    scale <100,100,100>
  66. }
  67.  
  68.